#ifndef lsystems
#define lsystems

#include <iostream>
#include <map>
#include <string>

using namespace std;


///L-system class (Lindermayer system)
class LSystem
{
private:

	string start;
	map<char,string> Rules;

public:
	LSystem();
	LSystem(string s, map<char,string> m);

	void AddRule(char p, string s);
	void RemoveRule(char p);
	void SetStart(string s);
	string Expand(int level);

};

#endif